package tpe.yana.testp1;

/**
 *
 * @author yana
 */
public class Disk {

    private final int size;

    public Disk(int size) {
        this.size = size;
    }

    public int getSize() {
        return size;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Disk other = (Disk) obj;
        if (this.size != other.size) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + this.size;
        return hash;
    }

    @Override
    public String toString() {
        return "Disk{" + size + '}';
    }
}
